import request from '@/utils/request'

// 首页轮播图
export const getLunbo = () => {
  return request({
    methods: 'get',
    url: '/banner/list'
  })
}
// 首页秒杀列表 /pro/seckilllist
export const getSeckillList = () => {
  return request({
    methods: 'get',
    url: '/pro/seckilllist'
  })
}
// 首页商品分页列表数据
export const getGoodsList = (count) => {
  return request({
    methodsL: 'get',
    url: `/pro/list?count=${count}`
  })
}
export const getCategorylist = () => {
  return request({
    methods: 'get',
    url: '/pro/categorylist'
  })
}
// 分类右数据
export function categorybrandlist(params) {
  return request.get('/pro/categorybrandlist', { params })
}
// 分类详情
export function categorybrandprolist(params) {
  return request.get('pro/categorybrandprolist', { params })
}
export const getCartlist = () => {
  return request({
    methods: 'get',
    url: '/cart/list'
  })
}
// 商品详情页
export function getDetail(params) {
  return request.get('/pro/detail/' + params)
}